import { isDevelopment } from '@src/util/platform';
import { RESOURCE_PREFIX } from '@src/util/linkSwitch';
const resourcePrefix = isDevelopment() ? '' : RESOURCE_PREFIX
export const taskNav = {
  title:'工单设置',
  list:[
    {
      name:'工单设置',
      type:'taskSet',
      url:`${resourcePrefix}/setting/task/taskSet`,
      icon:'icon-gongdanbiaodanshezhi'
    },
    {
      name:'工单类型设置',
      type:'taskType',
      url:`${resourcePrefix}/setting/taskType/manage`,
      icon:'icon-gongdanliuchengshezhi'
    },
    {
      name:'附加组件设置',
      type:'cardManage',
      url:`${resourcePrefix}/setting/task/cardManage`,
      icon:'icon-add3 '
    },
  ]
};
export const sparepartNav = {
  title:'备件设置',
  list:[
    {
      name:'备件库管理',
      type:'repertory',
      url:`${resourcePrefix}/setting/sparepart2/repertory`,
      icon:'icon-library'
    },
    {
      name:'备件选项',
      type:'instock',
      url: `${resourcePrefix}/setting/sparepart/instock`,
      icon:'icon-choose'
    }
  ]
};

export const customerNav = {
  title: '客户设置',
  list: [{
      name: '客户管理设置',
      type: 'customerFunc',
      url: '/pcoperation/setting/customer/customerFunc',
      icon: 'icon-caidan_kehumokuai'
    },
    {
      name: '自动提醒设置',
      type: 'customerRemind',
      url: '/pcoperation/setting/customer/remind',
      icon: 'icon-chanpinxiangqing-chanpintixing'
    },
    {
      name: '满意度设置',
      type: 'customerEvaluate',
      url: '/pcoperation/setting/customerEvaluate/evaluate',
      icon: 'icon-smile-fill1'
    },
    {
      name: '附加组件设置',
      type: 'customerAdditional',
      url: `${resourcePrefix}/setting/customer/additional`,
      icon: 'icon-fujiazujian1'
    },
    {
      name: '客户标签设置',
      type: 'customerTag',
      url: `${resourcePrefix}/setting/customer/tag`,
      icon: 'icon-add'
    },
  ]
};

export const performanceNav = {
  title:'运营分析设置',
  list:[
    {
      name:'绩效规则',
      type:'performance',
      url:`${resourcePrefix}/setting/performance/v2/rule`,
      icon:'icon-jixiaoguize'
    },
    {
      name:'报表设置',
      type:'report',
      url:`${resourcePrefix}/setting/performance/v2/report`,
      icon:'icon-baobiaoshezhi'
    }
  ]
};

export const eventNav = {
  title: "服务台设置",
  list: [{
    name: "服务事件设置",
    type: 'deskSetting',
    url: '/pcModule/setting/deskSetting',
    icon: 'icon-reception'
  }, {
    name: "事件类型设置",
    type: 'eventType',
    url: `${resourcePrefix}setting/serviceStation/eventType`,
    icon: 'icon-event'
  }, {
    name: "附加组件设置",
    type: 'cardManage',
    url: `${resourcePrefix}/setting/serviceStation/cardManage`,
    icon: 'icon-add3'
  }, {
    name: "在线客服设置",
    type: 'imSetting',
    url: '/pcModule/setting/imSetting',
    icon: 'icon-kefu1'
  }, {
    name: "呼叫中心设置",
    type: 'callcenterSetting',
    url: '/pcModule/setting/callcenterSetting',
    icon: 'icon-phone-fill'
  }, {
    name: "服务备注设置",
    type: 'serviceRemarkSetting',
    url: '/pcModule/setting/serviceRemarkSetting',
    icon: 'icon-message-fill'
  }, {
    name: "客服机器人",
    type: 'robotSetting',
    url: '/pcModule/setting/robotSetting',
    icon: 'icon-jiqiren'
  }]
}
export const contractNav={
  title:'合同设置',
  list:[
    {
      name:'合同管理设置',
      type:'contractSet',
      url:`${resourcePrefix}/setting/contract/manage`,
      icon:'icon-file-contact'
    },
    // {
    //   name:'附加组件设置',
    //   type:'cardManage',
    //   url:'/setting/task/cardManage',
    //   icon:'icon-add3 '
    // },
  ]
};

// module.exports = {
//   taskNav,
//   sparepartNav,
//   customerNav,
//   performanceNav
// };
